package com.example.icongyou.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * 任务热度看板模型（对应后端 TaskHeatVO）
 */
public class TaskHeatBean implements Serializable {
    @SerializedName("courseId")
    private String courseId; // 课程ID

    @SerializedName("viewHeatList")
    private List<HeatItemBean> viewHeatList; // 查看热度排序列表

    @SerializedName("discussionHeatList")
    private List<HeatItemBean> discussionHeatList; // 讨论热度排序列表

    // Getter & Setter
    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public List<HeatItemBean> getViewHeatList() {
        return viewHeatList;
    }

    public void setViewHeatList(List<HeatItemBean> viewHeatList) {
        this.viewHeatList = viewHeatList;
    }

    public List<HeatItemBean> getDiscussionHeatList() {
        return discussionHeatList;
    }

    public void setDiscussionHeatList(List<HeatItemBean> discussionHeatList) {
        this.discussionHeatList = discussionHeatList;
    }

    /**
     * 热度项模型（对应后端 HeatItemVO）
     */
    public static class HeatItemBean implements Serializable {
        @SerializedName("taskId")
        private long taskId; // 任务ID

        @SerializedName("taskName")
        private String taskName; // 任务名称

        @SerializedName("count")
        private int count; // 频次（查看/讨论次数）

        @SerializedName("rank")
        private int rank; // 排名

        // Getter & Setter
        public long getTaskId() {
            return taskId;
        }

        public void setTaskId(long taskId) {
            this.taskId = taskId;
        }

        public String getTaskName() {
            return taskName;
        }

        public void setTaskName(String taskName) {
            this.taskName = taskName;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getRank() {
            return rank;
        }

        public void setRank(int rank) {
            this.rank = rank;
        }
    }
}